package com.andnnl.dealy;

import com.andnnl.redis.RedisSession;

/**
 * Created by chenss on 2022/4/25.
 */
public class DealyInitTest {
    /**
     * 延迟初始化
     */
    public static class Holder {
        static {
            System.out.println("Holder init ");
        }
                // 这里的私有没有什么意义
        public static String instance = new String("aaaaaaaa");
    }
    public static void main(String[] args) {
        new DealyInitTest().toString();
//        System.out.println(new Holder());
        System.out.println(Holder.instance);
    }
}
